package team.pwy.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * 本来用来演示:
 *
 * @author feng
 * @date 2023/10/24
 * @Description
 */
@Repository
public interface SessionMapper {
    @Update("update pwy.pwy_session set number = number + #{quota} where id = #{id}")
    Integer updateById(@Param("id") Integer id, @Param("quota") Integer quota);
}
